package com.imooc.case_class

object ExceptionApp extends App{

  try{
    val i = 10 / 0
  }catch {
    case e:ArithmeticException => println("除数不能为0")
    case e:Exception => println(e.getMessage)
  }finally {
    println("I am finally")
  }

}
